package com.eas.biz.dao.statistic.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.eas.biz.dao.statistic.dataobject.QuestionAnswerStatisticDO;
import com.eas.biz.dao.statistic.interfaces.QuestionAnswerStatisticDao;
import com.eas.biz.framework.BaseQuery;
import com.eas.biz.framework.dao.GenericDaoImpl;

@Repository("questionAnswerStatisticDao")
public class QuestionAnswerStatisticDaoImpl extends GenericDaoImpl<QuestionAnswerStatisticDO>
        implements QuestionAnswerStatisticDao {

    public QuestionAnswerStatisticDO selectById(long id) {
        return selectById("QuestionAnswerStatistic.selectById", id);
    }

    public long insert(QuestionAnswerStatisticDO object) {
        return insert("QuestionAnswerStatistic.insert", object);
    }

    public int deleteById(long id) {
        return deleteById("QuestionAnswerStatistic.deleteById", id);
    }

    public int update(QuestionAnswerStatisticDO object) {
        return update("QuestionAnswerStatistic.update", object);
    }

    public List<QuestionAnswerStatisticDO> selectByQuery(BaseQuery query) {
        return selectByQuery("QuestionAnswerStatistic.selectByQuery", query);
    }

    public int countByQuery(BaseQuery query) {
        return countByQuery("QuestionAnswerStatistic.countByQuery", query);
    }

    public int deleteByQuery(BaseQuery query) {
        return deleteByQuery("QuestionAnswerStatistic.deleteByQuery", query);
    }

}
